<!-- Grid 1 -->
 <div id="header_profile" class="grid_1 bg-red none_radius">
	<!-- container_grid -->
	<div class="container_grid">
		<span id="avatar-min">
			<a href="<?php echo URL_BASE.$this->infoSession->username; ?>" id="avatar_link">
                <?php
                $avatar =$this->infoSession->avatar;
                if(strstr($avatar,'facebook') == false){
                    $avatar =   URL_BASE."/public/avatar/".$this->infoSession->avatar;
                    $status = get_headers($avatar);
                    if($status[0] == 'HTTP/1.1 404 Not Found'){
                        $avatar =  URL_BASE."thumb/48-48-public/avatar/avatar.png";
                    }
                    if($voter['user_avatar'] == ''){
                        $avatar =  URL_BASE."thumb/48-48-public/avatar/avatar.png";
                    }
                }
                ?>
			<img style="height: 48px" class="avatar_user" src="<?php echo $avatar; ?>">
		</a>
		</span>
		
		<span class="detail_grid_right">
			<a style="border: none;" class="username_right myprofile font-profile-header" href="<?php echo URL_BASE.$this->infoSession->username; ?>">
				<?php echo stripslashes( $this->infoSession->name ); ?>
				</a>
<!--			<a class="link_small myprofile" href="--><?php //echo URL_BASE.$this->infoSession->username; ?><!--">-->
<!--				--><?php //echo $_SESSION['LANG']['see_profile']; ?><!-- &rarr;-->
<!--				</a>-->
		
		</span>
		
		<ul class="user_data_profile">
   					<li>
   						<span class="container_data_profile_2 grid_first">
   							<a href="<?php echo URL_BASE.$this->infoSession->username; ?>" >

   							<span class="title_data_profile"> <?php echo $_SESSION['LANG']['posts']; ?></span>
                                <span class="countDataProfile"><?php echo _Function::formatNumber(  $this->infoSession->totalPost  ); ?></span>
   							</a>
   						</span>
   					</li>
   					
   					<li>
   						<span class="container_data_profile_2">
   							<a href="<?php echo URL_BASE.$this->infoSession->username.'/followers'; ?>" >

   							<span class="title_data_profile"> <?php echo $_SESSION['LANG']['followers']; ?></span>
                                <span class="countDataProfile"><?php echo _Function::formatNumber( $this->infoSession->totalFollowers ); ?></span>
   							</a>
   						</span>
   					</li>

   					<li class="last_li">
   						<span class="container_data_profile_2">
   							<a href="<?php echo URL_BASE.$this->infoSession->username.'/following'; ?>" >

								<span class="title_data_profile"> <?php echo $_SESSION['LANG']['following']; ?></span>
                                <span class="countDataProfile"><?php echo _Function::formatNumber( $this->infoSession->totalFollowing ); ?></span>
   							</a>
   							
   						</span>
   					</li>
<!--                   <li>-->
<!--                       <span class="container_data_profile_2">-->
<!--   							<a href="--><?php //echo URL_BASE.$this->infoSession->username.'/opinions'; ?><!--" >-->
<!--                                <span class="countDataProfile">--><?php //echo _Function::formatNumber( $this->infoSession->totalFollowing ); ?><!--</span>-->
<!--                                <span class="title_data_profile"> --><?php //echo $_SESSION['LANG']['opinions']; ?><!--</span>-->
<!--                            </a>-->
<!---->
<!--   						</span>-->
<!---->
<!---->
<!--                   </li>-->
   				</ul><!-- user_data -->
   				
	</div><!-- container_grid -->
</div><!-- Grid 1 -->
<div class="grid_1 grid_tab">
    <a class="btn-ajax" data-rel ="trending"  >
    <div class="tab">Trending
        <div class="active">active</div>
    </div>
    </a>
    <a class="btn-ajax"  data-rel ="top"   >
    <div class="tab tab_center">Top</div>
    </a>
    <a class="btn-ajax"  data-rel ="friend"  >
    <div class="tab">Friends</div>
    </a>
</div>
<div style="clear: both"></div>